package demo2;


import demo1.Base;

public final class Deveried extends Base {
    //final 说明不能在被继承
    public void test() {
        System.out.println(super.a);//直接访问父类
    }
    //Deveried deveried = new Deveried();
    public static void main(String[] args) {
        Deveried deveried1 = new Deveried();
        System.out.println(deveried1.a);
        deveried1.test();
    }

}
